.class Lcom/noshufou/android/su/preferences/PreferencesActivity$2;
.super Ljava/lang/Object;
.source "PreferencesActivity.java"

# interfaces
.implements Lcom/noshufou/android/su/widget/NumberPickerDialog$OnNumberSetListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/noshufou/android/su/preferences/PreferencesActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;


# direct methods
.method constructor <init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$2;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    .line 328
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onNumberSet(I)V
    .locals 6
    .parameter "number"

    .prologue
    .line 332
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$2;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mTimeoutPreference:Landroid/preference/Preference;
    invoke-static {v0}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$2(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/Preference;

    move-result-object v0

    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$2;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    const v2, 0x7f0b003d

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 333
    iget-object v0, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$2;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    iget-object v0, v0, Lcom/noshufou/android/su/preferences/PreferencesActivity;->mPrefs:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "pref_timeout"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 334
    return-void
.end method
